if (!window.console || !console.firebug)
{
    var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
    "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];

    window.console = {};
    for (var i = 0; i < names.length; ++i)
        window.console[names[i]] = function() {}
}

jQuery(function($) {
       
    var filters = jQuery('.sf_admin_filter form');
    
    jQuery('#filter-switcher').toggle(function(){
      filters.slideDown('fast');
      $(this).text('Close filter');
      
    }, function(){
      filters.slideUp('fast');
      $(this).text('Show filter');
    });
    
    var bigMenu = jQuery('#sf_admin_menu_left');
    
    var menu = jQuery('#sf_admin_menu_left div#accordion');
    var main = jQuery('#body');
    
    jQuery('#menu-switcher').toggle(function(){
      menu.slideLeftHide('fast');
      main.css('margin-left', '15px');
      
      bigMenu.css('width', '9px');
      bigMenu.css('height', menu.height() + 7);
      
      $(this).toggleClass('minimize');
      $(this).toggleClass('maximize');
      
      
    }, function(){
      menu.slideLeftShow('fast');
      main.css('margin-left', '260px');
      
      bigMenu.css('width', '254px');
      
      $(this).toggleClass('minimize');
      $(this).toggleClass('maximize');
    });
    

});